<div class="blazorise-codeblock">
<div class="csharp"><pre>
[StructLayout(LayoutKind.Auto)]
[CompilerGenerated]
<span class="keyword">private</span> <span class="keyword">struct</span> &lt;GetDocumentContent&gt;d__0 : IAsyncStateMachine
{
    <span class="keyword">public</span> <span class="keyword">int</span> &lt;&gt;1__state;

    <span class="keyword">public</span> AsyncTaskMethodBuilder&lt;<span class="keyword">string</span>&gt; &lt;&gt;t__builder;

    <span class="keyword">private</span> TaskAwaiter&lt;<span class="keyword">string</span>&gt; &lt;&gt;u__1;

    <span class="keyword">private</span> <span class="keyword">void</span> MoveNext()
    {
        <span class="keyword">int</span> num = &lt;&gt;1__state;
        <span class="keyword">string</span> result;
        <span class="keyword">try</span>
        {
            TaskAwaiter&lt;<span class="keyword">string</span>&gt; awaiter;
            <span class="keyword">if</span> (num != <span class="number">0</span>)
            {
                awaiter = File.ReadAllTextAsync(<span class="string">&quot;Document.txt&quot;</span>).GetAwaiter();
                <span class="keyword">if</span> (!awaiter.IsCompleted)
                {
                    num = (&lt;&gt;1__state = <span class="number">0</span>);
                    &lt;&gt;u__1 = awaiter;
                    &lt;&gt;t__builder.AwaitUnsafeOnCompleted(<span class="keyword">ref</span> awaiter, <span class="keyword">ref</span> <span class="keyword">this</span>);
                    <span class="keyword">return</span>;
                }
            }
            <span class="keyword">else</span>
            {
                awaiter = &lt;&gt;u__1;
                &lt;&gt;u__1 = <span class="keyword">default</span>(TaskAwaiter&lt;<span class="keyword">string</span>&gt;);
                num = (&lt;&gt;1__state = -<span class="number">1</span>);
            }
            result = awaiter.GetResult();
        }
        <span class="keyword">catch</span> (Exception exception)
        {
            &lt;&gt;1__state = -<span class="number">2</span>;
            &lt;&gt;t__builder.SetException(exception);
            <span class="keyword">return</span>;
        }
        &lt;&gt;1__state = -<span class="number">2</span>;
        &lt;&gt;t__builder.SetResult(result);
    }

    <span class="keyword">void</span> IAsyncStateMachine.MoveNext()
    {
        <span class="comment">//ILSpy generated this explicit interface implementation from .override directive in MoveNext</span>
        <span class="keyword">this</span>.MoveNext();
    }

    [DebuggerHidden]
    <span class="keyword">private</span> <span class="keyword">void</span> SetStateMachine(IAsyncStateMachine stateMachine)
    {
        &lt;&gt;t__builder.SetStateMachine(stateMachine);
    }

    <span class="keyword">void</span> IAsyncStateMachine.SetStateMachine(IAsyncStateMachine stateMachine)
    {
        <span class="comment">//ILSpy generated this explicit interface implementation from .override directive in SetStateMachine</span>
        <span class="keyword">this</span>.SetStateMachine(stateMachine);
    }
}

[AsyncStateMachine(<span class="keyword">typeof</span>(&lt;GetDocumentContent&gt;d__0))]
<span class="keyword">public</span> Task&lt;<span class="keyword">string</span>&gt; GetDocumentContent()
{
    &lt;GetDocumentContent&gt;d__0 stateMachine = <span class="keyword">default</span>(&lt;GetDocumentContent&gt;d__0);
    stateMachine.&lt;&gt;t__builder = AsyncTaskMethodBuilder&lt;<span class="keyword">string</span>&gt;.Create();
    stateMachine.&lt;&gt;1__state = -<span class="number">1</span>;
    stateMachine.&lt;&gt;t__builder.Start(<span class="keyword">ref</span> stateMachine);
    <span class="keyword">return</span> stateMachine.&lt;&gt;t__builder.Task;
}
</pre></div>
</div>
